package cn.edu.hqu.javaee.domain;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import lombok.Data;

@Data
public class Personal {
	@NotBlank(message="required")
	private String name;
	@NotBlank(message="M/F")
	private String sex;
	@Pattern(regexp="^\\d{8}$",message="number(8)")
	private String born;
	@Pattern(regexp="^\\d{10}$",message="number(10)")
	private String number;
	@Pattern(regexp="^\\d{4}$",message="number(4)")
	private String grade;
	@NotBlank(message="required")
	private String professional;
	@NotBlank(message="required")
	private String college;
}
